/*
package createTemplet;


import org.beetl.core.Configuration;
import org.beetl.core.GroupTemplate;
import org.beetl.core.Template;
import org.beetl.core.resource.ClasspathResourceLoader;

import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


*/
/**
 * User: cool
 * Date: 2018/5/15
 * Time: 14:10
 *//*

public class BeelMan {

    public static void main(String[] args) throws IOException {
        ClasspathResourceLoader resourceLoader = new ClasspathResourceLoader("createTemplet");
        Configuration cfg = Configuration.defaultConfiguration();
        GroupTemplate gt = new GroupTemplate(resourceLoader,cfg);
        Template t = gt.getTemplate("/mapper.vm");

        t.binding("namespace", "1111111111111");
        t.binding("javaType", "com.cool.vo");
        t.binding("idProperty", "id");
        t.binding("idColumn", "id");
        List list = new ArrayList();
        Map map = new HashMap();
        map.put("name","id");
        map.put("column","id");
        Map map1 = new HashMap();
        map1.put("name","name");
        map1.put("column","name");
        list.add(map);
        list.add(map1);
        t.binding("fields",list);

        String str = t.render();
        System.out.println(str);
    }
}
*/
